<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Insert title here</title>
    <link type="text/css" rel="stylesheet" th:href="@{/css/style.css}"/>
</head>
<body>
/templates/empadd.html<br/>
<form th:action="@{/emp}" method="post">
    员工编号<input type="text" name="eid"/><br/>
    员工姓名<input type="text" name="ename"/><br/>
    入职日期<input type="text" name="hiredate"/><br/>
    所属部门<select name="dep.did">
    <option th:each="dep:${deps}"
            th:value="${dep.did}">[[${dep.dname}]]</option>
</select><br/>
    <input type="submit" value="添加员工"/>
</form>
</body>
</html>